--- a/cmake/Configure.cmake
+++ b/cmake/Configure.cmake
@@ -113,7 +113,6 @@ endif()
 
 if (WEBP_FOUND)
     set(HAVE_LIBWEBP 1)
-    set(HAVE_LIBWEBP_ANIM 1)
 endif()
 
 if (ZLIB_FOUND)
